package com.samuel.learning.design.pattern.bridge;

/**
 * 定义一个抽象类，去实现接口的功能
 * @author samuel
 */
public abstract class Abstraction {

    private Implementor implementor;

    public Abstraction(Implementor implementor) {
        this.implementor = implementor;
    }

    /**
     * 做一些操作
     */
    public void operation(){
        implementor.operationImpl();
    }
}
